package com.chagee.channel.api.bo.ocr;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDate;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * 食品经营许可证ocr结果
 *
 * @author: chang.jiawei
 * @date: 2024/01/17
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class BusinessLicenseOcrDTO implements Serializable {

    @ApiModelProperty("统一社会信用代码")
    private String creditCode;

    @ApiModelProperty(value = "单位名称")
    private String companyName;

    @ApiModelProperty(value = "类型")
    private String companyType;

    @ApiModelProperty("地址")
    private String businessAddress;

    @ApiModelProperty(value = "法人")
    private String legalPerson;

    @ApiModelProperty("经营范围")
    private String businessScope;

    @ApiModelProperty("注册资本")
    private String registeredCapital;

    @ApiModelProperty("成立日期")
    @JSONField(alternateNames = {"RegistrationDate"})
    private LocalDate registrationDate;

    @ApiModelProperty("营业期限")
    private String validPeriod;

    @ApiModelProperty("格式化营业期限起始日期")
    private LocalDate validFromDate;

    @ApiModelProperty("格式化营业期限终止日期")
    private LocalDate validToDate;

    @ApiModelProperty("组成形式")
    private String companyForm;

    @ApiModelProperty("发照日期")
    private String issueDate;

    @ApiModelProperty("证照标题")
    private String title;


}
